home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update27.zoo / gcc-233 / Makefile.hpgcc < prev    next >
Encoding:
Makefile  |  1992-12-28  |  18.2 KB  |  497 lines

  1. # Makefile for GNU C CROSS compiler for the atariST/TT series hosted
  2. #  on a HPUX host (tested only on a HP Snake running hpux 8.x)
  3. #  NOTE: requires alloca.c from the emacs dist.
  4. #
  5.  
  6. # Makefile for GNU C compiler.
  7. #   Copyright (C) 1987 Free Software Foundation, Inc.
  8.  
  9. #This file is part of GNU CC.
  10.  
  11. #GNU CC is distributed in the hope that it will be useful,
  12. #but WITHOUT ANY WARRANTY.  No author or distributor
  13. #accepts responsibility to anyone for the consequences of using it
  14. #or for whether it serves any particular purpose or works at all,
  15. #unless he says so in writing.  Refer to the GNU CC General Public
  16. #License for full details.
  17.  
  18. #Everyone is granted permission to copy, modify and redistribute
  19. #GNU CC, but only under the conditions described in the
  20. #GNU CC General Public License.   A copy of this license is
  21. #supposed to have been given to you along with GNU CC so you
  22. #can know your rights and responsibilities.  It should be in a
  23. #file named COPYING.  Among other things, the copyright notice
  24. #and this notice must be preserved on all copies.
  25.  
  26. .NOEXPORT: # This tells GNU Make version 3
  27.        # not to put all the variables in the environment.
  28.  
  29. CROSSDIR = /net/acae127/home/bammi/atari.hp-ux/cross-gcc
  30. CROSSBIN = $(CROSSDIR)/bin
  31. CROSSLIB = $(CROSSDIR)/lib
  32. CROSSINC = $(CROSSDIR)/include
  33. GCC_INCLUDE_DIR = $(CROSSINC)
  34. GPLUSPLUS_INCLUDE_DIR = $(CROSSDIR)/g++-inc
  35.  
  36. DFLAGS= -DCROSSDIR=\"$(CROSSDIR)\"
  37. #CFLAGS = $(DFLAGS) -O +Obb1000 -DUSE_C_ALLOCA -DCROSSATARI=1 -DCROSSHPUX -I./config -I.
  38. CFLAGS = $(DFLAGS) -O -g -DCROSSATARI=1 -DCROSSHPUX -I./config -I.
  39. LDFLAGS = 
  40. #ALLOCA = /net/acae127/home/bammi/lib.hp-ux/alloca.o
  41. #MALLOC1 = /net/acae127/home/bammi/lib.hp-ux/malloc_new6.o
  42. MALLOC1 = 
  43. # host's cc
  44. CC = /util/gnu/bin/gcc
  45.  
  46. # OLDCC should not be the GNU C compiler.
  47. BISON = bison
  48. BISONFLAGS =
  49. AR = ar
  50. SHELL = /bin/sh
  51.  
  52. bindir = $(CROSSBIN)
  53. libdir = $(CROSSLIB)
  54.  
  55. # These are what you would need on HPUX:
  56. # CFLAGS = -Wc,-Ns2000 -Wc,-Ne700
  57. # -g is desirable in CFLAGS, but a compiler bug in HPUX version 5
  58. # bites whenever tree.def, rtl.def or machmode.def is included
  59. # (ie., on every source file).
  60. # CCLIBFLAGS = -Wc,-Ns2000 -Wc,-Ne700
  61. # For CCLIBFLAGS you might want to specify the switch that
  62. # forces only 68000 instructions to be used.
  63.  
  64. # If you are making gcc for the first time, and if you are compiling it with
  65. # a non-gcc compiler, and if your system doesn't have a working alloca() in any
  66. # of the standard libraries (as is true for HP/UX or Genix),
  67. # then get alloca.c from GNU Emacs and un-comment the following line:
  68. # ALLOCA = alloca.o
  69.  
  70. # If your system has alloca() in /lib/libPW.a, un-comment the following line:
  71. # CLIB= -lPW
  72.   
  73. # If your system's malloc() routine fails for any reason (as it does on
  74. # certain versions of Genix), try getting the files
  75. # malloc.c and getpagesize.h from GNU Emacs and un-comment the following line:
  76. # MALLOC = malloc.o
  77.  
  78. # If you are running GCC on an Apollo, you will need this:
  79. # CFLAGS = -g -O -M 3000 -U__STDC__ -DSHORT_ENUM_BUG
  80.  
  81. # Change this to a null string if obstacks are installed in the
  82. # system library.
  83. OBSTACK=obstack.o
  84.  
  85. # Dependency on obstack, alloca, malloc or whatever library facilities
  86. # are not installed in the system libraries.
  87. LIBDEPS= $(OBSTACK) $(ALLOCA) $(MALLOC)
  88.  
  89. # How to link with both our special library facilities
  90. # and the system's installed libraries.
  91. LIBS = $(OBSTACK) $(ALLOCA) $(MALLOC) $(MALLOC1) $(CLIB)
  92.  
  93. DIR = ../gcc
  94.  
  95. # Object files of CC1.
  96. # Language-specific object files for C.
  97. C_OBJS = c-parse.o c-lang.o c-lex.o \
  98.  c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-pragma.o
  99.  
  100. # Language-specific object files for C++.
  101. CPLUS_OBJS = cp-parse.o cp-decl.o cp-decl2.o \
  102.    cp-typeck.o cp-type2.o cp-tree.o cp-ptree.o \
  103.    cp-cvt.o cp-search.o cp-lex.o cp-gc.o cp-call.o \
  104.    cp-class.o cp-init.o cp-method.o cp-except.o \
  105.    cp-expr.o cp-pt.o cp-edsel.o cp-xref.o \
  106.    $(CPLUS_INPUT) cp-spew.o c-common.o
  107.  
  108. # Language-independent object files.
  109. OBJS = toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o \
  110.  function.o stmt.o expr.o calls.o expmed.o explow.o optabs.o varasm.o \
  111.  rtl.o print-rtl.o rtlanal.o dbxout.o sdbout.o dwarfout.o emit-rtl.o \
  112.  integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o \
  113.  regclass.o local-alloc.o global.o reload.o reload1.o caller-save.o \
  114.  insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o \
  115.  insn-recog.o insn-extract.o insn-output.o insn-emit.o \
  116.  insn-attrtab.o aux-output.o getpwd.o
  117.  
  118. GCC_PASSES=gcc cc1 cpp
  119.  
  120. # Files to be copied away after each stage in building.
  121. STAGESTUFF = *.o insn-flags.h insn-config.h insn-codes.h \
  122.  insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \
  123.  insn-attr.h insn-attrtab.c \
  124.  stamp-flags stamp-config stamp-codes \
  125.  stamp-output stamp-recog stamp-emit stamp-extract stamp-peep \
  126.  stamp-attr stamp-attrtab \
  127.  genemit genoutput genrecog genextract genflags gencodes genconfig genpeep \
  128.  genattrtab genattr \
  129.  $(GCC_PASSES) $(EXTRA_PARTS) gcc-cross cccp cc1plus cc1obj enquire \
  130.  protoize unprotoize specs collect2
  131.  
  132. # Header files that are made available to programs compiled with gcc.
  133. USER_H = stddef.h stdarg.h assert.h va-*.h limits.h
  134.  
  135. # If you want to recompile everything, just do rm *.o.
  136. # CONFIG_H = config.h tm.h
  137. CONFIG_H =
  138. RTL_H = rtl.h rtl.def machmode.h machmode.def
  139. TREE_H = tree.h real.h tree.def machmode.h machmode.def
  140. CPLUS_TREE_H = $(TREE_H) cp-tree.h cp-tree.def
  141.  
  142. ALL =  gcc cc1 cpp
  143.  
  144. all: $(ALL)
  145.  
  146. compilations: ${OBJS}
  147.  
  148. gcc: gcc.o version.o $(LIBDEPS)
  149.     $(CC) $(CFLAGS) $(LDFLAGS) -o gccnew gcc.o version.o $(LIBS)
  150. # Go via `gccnew' to avoid `file busy' if $(CC) is `gcc'.
  151.     mv gccnew gcc
  152.  
  153. gcc.o: gcc.c $(CONFIG_H)
  154.     $(CC) $(CFLAGS) -c -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-\" \
  155. -DDEFAULT_TARGET_MACHINE=\"atariST\" gcc.c
  156.  
  157. cc1: $(C_OBJS) $(OBJS) $(LIBDEPS)
  158.     $(CC) $(CFLAGS) $(LDFLAGS) -o cc1 $(C_OBJS) $(OBJS) $(LIBS)
  159.  
  160. cc1+: $(CPLUS_OBJS) $(OBJS) $(LIBDEPS)
  161.     $(CC) $(CFLAGS) $(LDFLAGS) -o cc1+ $(CPLUS_OBJS) $(OBJS) $(LIBS)
  162.  
  163. cc1o: $(OBJC_OBJS) $(OBJS) $(LIBDEPS)
  164.     $(CC) $(CFLAGS) $(LDFLAGS) -o cc1o $(OBJC_OBJS) $(OBJS) $(LIBS)
  165.  
  166. # C-language specific files.
  167.  
  168. c-parse.o : c-parse.c $(CONFIG_H) $(TREE_H) c-lex.h c-tree.h input.h flags.h
  169.     $(CC) $(CFLAGS) -c c-parse.c
  170. c-parse.c c-parse.h: c-parse.y
  171.     $(BISON) $(BISONFLAGS) -d c-parse.y -o c-parse.c
  172. c-parse.y: c-parse.in cond.awk
  173.     awk -f cond.awk objc=0 c-parse.in > c-parse.y
  174.  
  175. c-decl.o : c-decl.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
  176. c-typeck.o : c-typeck.c $(CONFIG_H) $(TREE_H) c-tree.h flags.h
  177. c-lang.o : c-lang.c $(CONFIG_H) $(TREE_H)
  178. c-lex.o : c-lex.c $(CONFIG_H) $(TREE_H) c-lex.h c-tree.h c-parse.h \
  179.     input.h flags.h
  180. c-aux-info.o : c-aux-info.c  $(CONFIG_H) $(TREE_H) c-tree.h flags.h
  181. c-convert.o : c-convert.c $(CONFIG_H) $(TREE_H) flags.h
  182.  
  183. # C++ language specific files.
  184.  
  185. cp-parse.o : cp-parse.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  186.     $(CC) -c $(CFLAGS) cp-parse.c
  187.  
  188. cp-parse.c cp-parse.h : cp-parse.y
  189.     @echo expect 30 shift/reduce conflicts and 14 reduce/reduce conflicts
  190.     $(BISON) $(BISONFLAGS) -d -o cp-parse.c cp-parse.y
  191.     grep '^#define[     ]*YYEMPTY' cp-parse.c >>cp-parse.h
  192.  
  193. cp-spew.o : cp-spew.c $(CONFIG_H) $(CPLUS_TREE_H) \
  194.    cp-parse.h flags.h
  195. cp-lex.o : cp-lex.c $(CONFIG_H) $(CPLUS_TREE_H) \
  196.    cp-parse.h cp-input.c flags.h
  197. cp-decl.o : cp-decl.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h \
  198.   cp-lex.h cp-decl.h stack.h
  199. cp-decl2.o : cp-decl2.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h \
  200.   cp-lex.h cp-decl.h
  201. cp-type2.o : cp-type2.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  202. cp-typeck.o : cp-typeck.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  203. cp-class.o : cp-class.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h \
  204.     cp-class.h flags.h
  205. cp-call.o : cp-call.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h cp-class.h \
  206.     flags.h
  207. cp-init.o : cp-init.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  208. cp-method.o : cp-method.c $(CONFIG_H) $(CPLUS_TREE_H)
  209. cp-cvt.o : cp-cvt.c $(CONFIG_H) $(CPLUS_TREE_H)
  210. cp-search.o : cp-search.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h flags.h
  211. cp-tree.o : cp-tree.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  212. cp-ptree.o : cp-ptree.c $(CONFIG_H) $(CPLUS_TREE_H)
  213. cp-gc.o : cp-gc.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  214. cp-except.o : cp-except.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  215. cp-expr.o : cp-expr.c $(CONFIG_H) $(CPLUS_TREE_H) $(RTL_H) flags.h \
  216.   expr.h insn-codes.h
  217. cp-edsel.o : cp-edsel.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h flags.h
  218. cp-xref.o : cp-xref.c $(CONFIG_H) $(CPLUS_TREE_H)
  219. cp-pt.o : cp-pt.c $(CONFIG_H) $(CPLUS_TREE_H) cp-decl.h cp-parse.h
  220.  
  221. # Objectionable C language specific files.
  222.  
  223. objc-parse.o : objc-parse.c $(CONFIG_H) $(TREE_H) c-lex.h \
  224.    c-tree.h input.h flags.h objc-actions.h
  225.     $(CC) $(CFLAGS) -c objc-parse.c
  226. objc-parse.c : objc-parse.y
  227.     $(BISON) $(BISONFLAGS) objc-parse.y -o objc-parse.c
  228.  
  229. objc-actions.o : objc-actions.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h \
  230.    flags.h objc-actions.h
  231.  
  232. # A file used by all variants of C.
  233.  
  234. c-common.o : c-common.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
  235.  
  236.  
  237. # Language-independent files.
  238. dumpvers: dumpvers.c
  239.  
  240. version.o: version.c
  241. obstack.o: obstack.c
  242.  
  243. tree.o : tree.c $(CONFIG_H) $(TREE_H) gvarargs.h flags.h function.h
  244. print-tree.o : print-tree.c $(CONFIG_H) $(TREE_H)
  245. stor-layout.o : stor-layout.c $(CONFIG_H) $(TREE_H) function.h
  246. fold-const.o : fold-const.c $(CONFIG_H) $(TREE_H) flags.h 
  247. toplev.o : toplev.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h input.h \
  248.  insn-attr.h xcoffout.h
  249.  
  250. rtl.o : rtl.c $(CONFIG_H) $(RTL_H)
  251.  
  252. print-rtl.o : print-rtl.c $(CONFIG_H) $(RTL_H)
  253. rtlanal.o : rtlanal.c $(CONFIG_H) $(RTL_H)
  254.  
  255. varasm.o : varasm.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h \
  256.    insn-codes.h expr.h hard-reg-set.h regs.h xcoffout.h
  257. function.o : function.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h  \
  258.    insn-flags.h insn-codes.h expr.h regs.h hard-reg-set.h insn-config.h \
  259.    recog.h output.h
  260. stmt.o : stmt.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h  \
  261.    insn-flags.h insn-config.h insn-codes.h hard-reg-set.h expr.h loop.h recog.h
  262. expr.o : expr.c $(CONFIG_H) $(RTL_H) $(TREE_H) gvarargs.h flags.h function.h  \
  263.    insn-flags.h insn-codes.h expr.h insn-config.h recog.h output.h typeclass.h
  264. calls.o : calls.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h expr.h insn-codes.h \
  265.    insn-flags.h
  266. expmed.o : expmed.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
  267.    insn-flags.h insn-config.h insn-codes.h expr.h recog.h real.h
  268. explow.o : explow.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h hard-reg-set.h \
  269.    insn-config.h expr.h recog.h insn-flags.h insn-codes.h
  270. optabs.o : optabs.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
  271.    insn-flags.h insn-config.h insn-codes.h expr.h recog.h
  272. dbxout.o : dbxout.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h regs.h \
  273.    insn-config.h reload.h gstab.h xcoffout.h
  274. sdbout.o : sdbout.c $(CONFIG_H) $(TREE_H) $(RTL_H) gsyms.h flags.h \
  275.    insn-config.h reload.h
  276. dwarfout.o : dwarfout.c $(CONFIG_H) $(TREE_H) $(RTL_H) dwarf.h flags.h \
  277.    insn-config.h reload.h output.h
  278. xcoffout.o : xcoffout.c $(CONFIG_H) $(TREE_H) $(RTL_H) xcoffout.h flags.h
  279. emit-rtl.o : emit-rtl.c $(CONFIG_H) $(RTL_H) flags.h gvarargs.h function.h  \
  280.    regs.h insn-config.h insn-codes.h real.h expr.h
  281.  
  282. integrate.o : integrate.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h integrate.h \
  283.    insn-flags.h insn-config.h insn-codes.h expr.h real.h function.h
  284.  
  285. jump.o : jump.c $(CONFIG_H) $(RTL_H) flags.h hard-reg-set.h regs.h \
  286.    insn-config.h insn-flags.h insn-codes.h expr.h real.h
  287. stupid.o : stupid.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h
  288.  
  289. cse.o : cse.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h real.h \
  290.    insn-config.h recog.h
  291. loop.o : loop.c $(CONFIG_H) $(RTL_H) flags.h loop.h insn-config.h \
  292.    insn-flags.h insn-codes.h regs.h hard-reg-set.h recog.h expr.h real.h
  293. unroll.o : unroll.c $(CONFIG_H) $(RTL_H) insn-config.h insn-codes.h \
  294.    integrate.h regs.h flags.h expr.h loop.h
  295. flow.o : flow.c $(CONFIG_H) $(RTL_H) flags.h insn-config.h \
  296.    basic-block.h regs.h hard-reg-set.h output.h
  297. combine.o : combine.c $(CONFIG_H) $(RTL_H) gvarargs.h flags.h  \
  298.    insn-config.h insn-flags.h insn-codes.h insn-attr.h regs.h expr.h \
  299.    basic-block.h recog.h real.h
  300. regclass.o : regclass.c $(CONFIG_H) $(RTL_H) hard-reg-set.h flags.h \
  301.    basic-block.h regs.h insn-config.h recog.h 
  302. local-alloc.o : local-alloc.c $(CONFIG_H) $(RTL_H) flags.h basic-block.h \
  303.    regs.h hard-reg-set.h insn-config.h recog.h output.h
  304. global.o : global.c $(CONFIG_H) $(RTL_H) flags.h  \
  305.    basic-block.h regs.h hard-reg-set.h insn-config.h output.h
  306.  
  307. reload.o : reload.c $(CONFIG_H) $(RTL_H) flags.h \
  308.    reload.h recog.h hard-reg-set.h insn-config.h insn-codes.h regs.h real.h
  309. reload1.o : reload1.c $(CONFIG_H) $(RTL_H) flags.h expr.h \
  310.    reload.h regs.h hard-reg-set.h insn-config.h insn-flags.h insn-codes.h \
  311.    basic-block.h recog.h output.h
  312. caller-save.o : caller-save.c $(CONFIG_H) $(RTL_H) flags.h \
  313.    regs.h hard-reg-set.h insn-config.h basic-block.h recog.h reload.h expr.h
  314. reorg.o : reorg.c $(CONFIG_H) $(RTL_H) conditions.h hard-reg-set.h \
  315.    basic-block.h regs.h insn-config.h insn-attr.h insn-flags.h recog.h \
  316.    flags.h output.h
  317. sched.o : sched.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h hard-reg-set.h \
  318.    flags.h insn-config.h insn-attr.h
  319. final.o : final.c $(CONFIG_H) $(RTL_H) gvarargs.h flags.h regs.h \
  320.    recog.h conditions.h insn-config.h insn-attr.h real.h output.h \
  321.    hard-reg-set.h insn-codes.h gstab.h xcoffout.h
  322. recog.o : recog.c $(CONFIG_H) $(RTL_H)  \
  323.    regs.h recog.h hard-reg-set.h flags.h insn-config.h insn-attr.h \
  324.    insn-flags.h insn-codes.h real.h
  325. reg-stack.o : reg-stack.c $(CONFIG_H) $(RTL_H) $(TREE_H) \
  326.    regs.h hard-reg-set.h flags.h insn-config.h
  327.    
  328. aux-output.o : aux-output.c $(CONFIG_H) \
  329.    $(RTL_H) regs.h hard-reg-set.h real.h insn-config.h conditions.h \
  330.    insn-flags.h output.h insn-attr.h insn-codes.h
  331.  
  332. .PRECIOUS: insn-config.h insn-flags.h insn-codes.h \
  333.   insn-emit.c insn-recog.c insn-extract.c insn-output.c insn-peep.c \
  334.   insn-attr.h insn-attrtab.c
  335.  
  336. insn-config.h : md genconfig
  337.     ./genconfig md > tmp-insn-config.h
  338.     ./move-if-change tmp-insn-config.h insn-config.h
  339.  
  340. insn-flags.h : md genflags
  341.     ./genflags md > tmp-insn-flags.h
  342.     ./move-if-change tmp-insn-flags.h insn-flags.h
  343.  
  344. insn-codes.h : md gencodes
  345.     ./gencodes md > tmp-insn-codes.h
  346.     ./move-if-change tmp-insn-codes.h insn-codes.h
  347.  
  348. insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) expr.h insn-config.h
  349.     $(CC) $(CFLAGS) -c insn-emit.c
  350.  
  351. insn-emit.c : md genemit
  352.     ./genemit md > tmp-insn-emit.c
  353.     ./move-if-change tmp-insn-emit.c insn-emit.c
  354.  
  355. insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h
  356.     $(CC) $(CFLAGS) -c insn-recog.c
  357.  
  358. insn-recog.c : md genrecog
  359.     ./genrecog md > tmp-insn-recog.c
  360.     ./move-if-change tmp-insn-recog.c insn-recog.c
  361.  
  362. insn-extract.o : insn-extract.c $(RTL_H)
  363.     $(CC) $(CFLAGS) -c insn-extract.c
  364.  
  365. insn-extract.c : md genextract
  366.     ./genextract md > tmp-insn-extract.c
  367.     ./move-if-change tmp-insn-extract.c insn-extract.c
  368.  
  369. insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) regs.h
  370.     $(CC) $(CFLAGS) -c insn-peep.c
  371.  
  372. insn-peep.c : md genpeep
  373.     ./genpeep md > tmp-insn-peep.c
  374.     ./move-if-change tmp-insn-peep.c insn-peep.c
  375.  
  376. insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) regs.h insn-config.h insn-flags.h conditions.h output.h aux-output.c
  377.     $(CC) $(CFLAGS) -c insn-output.c
  378.  
  379. insn-output.c : md genoutput
  380.     ./genoutput md > tmp-insn-output.c
  381.     ./move-if-change tmp-insn-output.c insn-output.c
  382.  
  383. insn-attrtab.o : insn-attrtab.c $(CONFIG_H) $(RTL_H) regs.h real.h output.h \
  384.      insn-attr.h insn-config.h
  385.     $(CC) $(CFLAGS) -c insn-attrtab.c
  386.  
  387. insn-attr.h: md genattr
  388.     ./genattr md > tmp-attr.h
  389.     ./move-if-change tmp-attr.h insn-attr.h
  390.  
  391. insn-attrtab.c: md genattrtab
  392.     ./genattrtab md > tmp-attrtab.c
  393.     ./move-if-change tmp-attrtab.c insn-attrtab.c
  394.  
  395. # Now the programs that generate those files.
  396.  
  397. genconfig : genconfig.o rtl.o $(LIBDEPS)
  398.     $(CC) $(CFLAGS) $(LDFLAGS) -o genconfig genconfig.o rtl.o $(LIBS)
  399.  
  400. genconfig.o : genconfig.c $(RTL_H)
  401.     $(CC) $(CFLAGS) -c genconfig.c
  402.  
  403. genflags : genflags.o rtl.o $(LIBDEPS)
  404.     $(CC) $(CFLAGS) $(LDFLAGS) -o genflags genflags.o rtl.o $(LIBS)
  405.  
  406. genflags.o : genflags.c $(RTL_H)
  407.     $(CC) $(CFLAGS) -c genflags.c
  408.  
  409. gencodes : gencodes.o rtl.o $(LIBDEPS)
  410.     $(CC) $(CFLAGS) $(LDFLAGS) -o gencodes gencodes.o rtl.o $(LIBS)
  411.  
  412. gencodes.o : gencodes.c $(RTL_H)
  413.     $(CC) $(CFLAGS) -c gencodes.c
  414.  
  415. genemit : genemit.o rtl.o $(LIBDEPS)
  416.     $(CC) $(CFLAGS) $(LDFLAGS) -o genemit genemit.o rtl.o $(LIBS)
  417.  
  418. genemit.o : genemit.c $(RTL_H)
  419.     $(CC) $(CFLAGS) -c genemit.c
  420.  
  421. genrecog : genrecog.o rtl.o $(LIBDEPS)
  422.     $(CC) $(CFLAGS) $(LDFLAGS) -o genrecog genrecog.o rtl.o $(LIBS)
  423.  
  424. genrecog.o : genrecog.c $(RTL_H)
  425.     $(CC) $(CFLAGS) -c genrecog.c
  426.  
  427. genextract : genextract.o rtl.o $(LIBDEPS)
  428.     $(CC) $(CFLAGS) $(LDFLAGS) -o genextract genextract.o rtl.o $(LIBS)
  429.  
  430. genextract.o : genextract.c $(RTL_H)
  431.     $(CC) $(CFLAGS) -c genextract.c
  432.  
  433. genpeep : genpeep.o rtl.o $(LIBDEPS)
  434.     $(CC) $(CFLAGS) $(LDFLAGS) -o genpeep genpeep.o rtl.o $(LIBS)
  435.  
  436. genpeep.o : genpeep.c $(RTL_H)
  437.     $(CC) $(CFLAGS) -c genpeep.c
  438.  
  439. genoutput : genoutput.o rtl.o $(LIBDEPS)
  440.     $(CC) $(CFLAGS) $(LDFLAGS) -o genoutput genoutput.o rtl.o $(LIBS)
  441.  
  442. genoutput.o : genoutput.c $(RTL_H)
  443.     $(CC) $(CFLAGS) -c genoutput.c
  444.  
  445. genattr : genattr.o rtl.o $(LIBDEPS)
  446.     $(CC) $(CFLAGS) $(LDFLAGS) -o genattr \
  447.      genattr.o rtl.o $(LIBS)
  448.  
  449. genattr.o : genattr.c $(RTL_H) config.h
  450.     $(CC) -c $(CFLAGS) genattr.c
  451.  
  452. genattrtab : genattrtab.o rtl.o rtlanal.o $(LIBDEPS)
  453.     $(CC) $(CFLAGS) $(LDFLAGS) -o genattrtab \
  454.      genattrtab.o rtl.o rtlanal.o $(LIBS)
  455.  
  456. genattrtab.o : genattrtab.c $(RTL_H) config.h insn-config.h
  457.     $(CC) -c $(CFLAGS) genattrtab.c
  458.  
  459. # Making the preprocessor
  460. cpp: cccp
  461.     -rm -f cpp
  462.     ln cccp cpp
  463. cccp: cccp.o cexp.o version.o $(LIBDEPS)
  464.     $(CC) $(CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS)
  465. cexp.o: cexp.c
  466. cexp.c: cexp.y
  467.     $(BISON) -o cexp.c cexp.y
  468. cccp.o: cccp.c pcp.h $(CONFIG_H)
  469.     $(CC) $(CFLAGS) -DGCC_INCLUDE_DIR=\"$(GCC_INCLUDE_DIR)\" \
  470.           -DGPLUSPLUS_INCLUDE_DIR=\"$(GPLUSPLUS_INCLUDE_DIR)\" \
  471.       -DCROSSINC=\"$(CROSSINC)\" -c cccp.c
  472.  
  473. # gnulib is not deleted because deleting it would be inconvenient
  474. # for most uses of this target.
  475. clean:
  476.     -rm -f *.o *.oo $(STAGESTUFF)
  477.     -rm -f *.s *.s[0-9] *.co *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop
  478.     -rm -f core
  479.  
  480. # Get rid of every file that's generated from some other file (except INSTALL).
  481. realclean: clean
  482.     -rm -f $(ALL)
  483.     -rm -f cpp.aux cpp.cps cpp.fns cpp.info cpp.kys cpp.pgs cpp.tps cpp.vrs
  484.     -rm -f errs gnulib TAGS 
  485.     -rm -f core report
  486.     -rm -f internals internals-* internals.?? internals.??s
  487.  
  488. # Copy the files into directories where they will be run.
  489. install: all
  490.     cp cc1 $(libdir)/gcc-cc1
  491.     cp cpp $(libdir)/gcc-cpp
  492.     cp gcc $(bindir)/cgcc
  493.  
  494. force:
  495. #In GNU Make, ignore whether `stage*' exists.
  496. .PHONY: clean realclean
  497.